package sampletest.util;

public class Assert {

    public static void isTrue(boolean b){
        isTrue(b, "Value must be true");
    }

    public static void isTrue(boolean b, String message){
        if (!b){
            throw new IllegalArgumentException(message);
        }
    }

    public static void notNull(Object o){
        notNull(o, "Object must not be null");
    }

    public static void notNull(Object o, String message){
        if (o == null){
            throw new IllegalArgumentException(message);
        }
    }
}
